EntityDAC
Returns the last element of the enumeration.
The function returns the last element of the enumeration. If the enumeration does not contain elements, the exception is raised.